
import Page from '@/components/Layout'
import LeagueMatch from '@/components/LeagueMatch'
import { getLiveInfo } from '@/common/liveData'
const Index = (props) => <LeagueMatch {...props}></LeagueMatch>
Index.getLayout = (page, props) => {
  return (
    <Page header footer {...props}>
      {page}
    </Page >
  )
}
export async function getServerSideProps () {
  const matchType = process.env.NEXT_PUBLIC_Football
  const props = getLiveInfo(matchType)
  return {
    props
  }
}


export default Index